gtkdnd: Use gdk_drag_begin_for_device()
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 19 Nov 2015 19:00:23 +0000 (20:00 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 19 Nov 2015 22:26:49 +0000 (23:26 +0100)
We've got the pointer at hand there, just pass that instead of figuring
out from the client pointer.

gtk/gtkdnd.c

index 58d03950c3b079b217151c9442b77f34462949dd..42bf8f1187361852b5cbdba7937ca9ef1dd8f27e 100644 (file)
@@ -2456,7 +2456,7 @@ gtk_drag_begin_internal (GtkWidget         *widget,
 
   source_widgets = g_slist_prepend (source_widgets, ipc_widget);
 
-  context = gdk_drag_begin (ipc_window, targets);
+  context = gdk_drag_begin_for_device (ipc_window, pointer, targets);
   gdk_drag_context_set_device (context, pointer);
   g_list_free (targets);